<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
		*{margin: 0; padding: 0;}
		.box{width: 200px;height: 200px;background:pink;position: fixed;left: -200px;top:300px;transition: 1s;}
		.ac{left: 0;}
		.box span{position: absolute;left: 200px;top: 30px;width: 20px;word-wrap: break-word;border: 1px solid #333;}
  </style>
  <script src="utils.js"></script>
</head>
<body>
    <div class="box">
        <span>分享到</span>
    </div>
    <script>
        var box = document.querySelector('.box')
        // box.onmouseenter = function () {
        //     utils.move(this, 'left', 0, 1000)
        // }
        // box.onmouseleave = function () {
        //     utils.move(this, 'left', -200, 1000)
        // }

        // box.onmouseenter = function () {
        //     utils.move(this, 'left', 0, 1000)
        // }
        // box.onmouseleave = function () {
        //     utils.move(this, 'left', -200, 1000)
        // }
        box.onmouseenter = function () {
            this.style.left = 0 +'px'
        }
        box.onmouseleave = function () {
            this.style.left = -200 +'px'
        }
    </script>
</body>
</html>